﻿  
 

  
using System;
using System.ComponentModel;
using Churchtoolkit.DataAccess;using Churchtoolkit.DataAccess.Common;using Churchtoolkit.DataAccess.Entities;namespace Churchtoolkit.DataAccess.Entities 
{	
	
	#region MembersInModules Class 
	/// <summary>
	/// Entity represents a row for table MembersInModules 
	/// </summary>
	public class MembersInModules : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="MembersInModules"/> class.
        /// </summary>
		public MembersInModules()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.Int32 _memberId ;
		public System.Int32 MemberId 
		{ 
			get
			{
				return this._memberId;
			}
			set
			{
				this._memberId = value;
				this.SendPropertyChanged("MemberId");
			}
		}
			private System.Int32 _moduleId ;
		public System.Int32 ModuleId 
		{ 
			get
			{
				return this._moduleId;
			}
			set
			{
				this._moduleId = value;
				this.SendPropertyChanged("ModuleId");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region MemberPhones Class 
	/// <summary>
	/// Entity represents a row for table MemberPhones 
	/// </summary>
	public class MemberPhones : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="MemberPhones"/> class.
        /// </summary>
		public MemberPhones()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.Int32 _memberId ;
		public System.Int32 MemberId 
		{ 
			get
			{
				return this._memberId;
			}
			set
			{
				this._memberId = value;
				this.SendPropertyChanged("MemberId");
			}
		}
			private System.String _phone ;
		public System.String Phone 
		{ 
			get
			{
				return this._phone;
			}
			set
			{
				this._phone = value;
				this.SendPropertyChanged("Phone");
			}
		}
			private System.Int32 _phoneId ;
		public System.Int32 PhoneId 
		{ 
			get
			{
				return this._phoneId;
			}
			set
			{
				this._phoneId = value;
				this.SendPropertyChanged("PhoneId");
			}
		}
			private System.Byte _phoneType ;
		public System.Byte PhoneType 
		{ 
			get
			{
				return this._phoneType;
			}
			set
			{
				this._phoneType = value;
				this.SendPropertyChanged("PhoneType");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region Members Class 
	/// <summary>
	/// Entity represents a row for table Members 
	/// </summary>
	public class Members : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="Members"/> class.
        /// </summary>
		public Members()
		{
			CreationDate = DateTime.Now; 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.DateTime ? _birthdate ;
		public System.DateTime ? Birthdate 
		{ 
			get
			{
				return this._birthdate;
			}
			set
			{
				this._birthdate = value;
				this.SendPropertyChanged("Birthdate");
			}
		}
			private System.String _confessionFather ;
		public System.String ConfessionFather 
		{ 
			get
			{
				return this._confessionFather;
			}
			set
			{
				this._confessionFather = value;
				this.SendPropertyChanged("ConfessionFather");
			}
		}
			private System.Int32 ? _countryId ;
		public System.Int32 ? CountryId 
		{ 
			get
			{
				return this._countryId;
			}
			set
			{
				this._countryId = value;
				this.SendPropertyChanged("CountryId");
			}
		}
			private System.DateTime _creationDate ;
		public System.DateTime CreationDate 
		{ 
			get
			{
				return this._creationDate;
			}
			set
			{
				this._creationDate = value;
				this.SendPropertyChanged("CreationDate");
			}
		}
			private System.String _displayName ;
		public System.String DisplayName 
		{ 
			get
			{
				return this._displayName;
			}
			set
			{
				this._displayName = value;
				this.SendPropertyChanged("DisplayName");
			}
		}
			private System.String _email ;
		public System.String Email 
		{ 
			get
			{
				return this._email;
			}
			set
			{
				this._email = value;
				this.SendPropertyChanged("Email");
			}
		}
			private System.String _firstName ;
		public System.String FirstName 
		{ 
			get
			{
				return this._firstName;
			}
			set
			{
				this._firstName = value;
				this.SendPropertyChanged("FirstName");
			}
		}
			private System.Byte ? _gender ;
		public System.Byte ? Gender 
		{ 
			get
			{
				return this._gender;
			}
			set
			{
				this._gender = value;
				this.SendPropertyChanged("Gender");
			}
		}
			private System.String _imagePath ;
		public System.String ImagePath 
		{ 
			get
			{
				return this._imagePath;
			}
			set
			{
				this._imagePath = value;
				this.SendPropertyChanged("ImagePath");
			}
		}
			private System.Boolean _isActive ;
		public System.Boolean IsActive 
		{ 
			get
			{
				return this._isActive;
			}
			set
			{
				this._isActive = value;
				this.SendPropertyChanged("IsActive");
			}
		}
			private System.String _lastName ;
		public System.String LastName 
		{ 
			get
			{
				return this._lastName;
			}
			set
			{
				this._lastName = value;
				this.SendPropertyChanged("LastName");
			}
		}
			private System.DateTime _lastUpdateDate ;
		public System.DateTime LastUpdateDate 
		{ 
			get
			{
				return this._lastUpdateDate;
			}
			set
			{
				this._lastUpdateDate = value;
				this.SendPropertyChanged("LastUpdateDate");
			}
		}
			private System.Int32 _memberId ;
		public System.Int32 MemberId 
		{ 
			get
			{
				return this._memberId;
			}
			set
			{
				this._memberId = value;
				this.SendPropertyChanged("MemberId");
			}
		}
			private System.Int32 ? _nationalityId ;
		public System.Int32 ? NationalityId 
		{ 
			get
			{
				return this._nationalityId;
			}
			set
			{
				this._nationalityId = value;
				this.SendPropertyChanged("NationalityId");
			}
		}
			private System.String _password ;
		public System.String Password 
		{ 
			get
			{
				return this._password;
			}
			set
			{
				this._password = value;
				this.SendPropertyChanged("Password");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region MemberAddresses Class 
	/// <summary>
	/// Entity represents a row for table MemberAddresses 
	/// </summary>
	public class MemberAddresses : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="MemberAddresses"/> class.
        /// </summary>
		public MemberAddresses()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.Int32 _addressId ;
		public System.Int32 AddressId 
		{ 
			get
			{
				return this._addressId;
			}
			set
			{
				this._addressId = value;
				this.SendPropertyChanged("AddressId");
			}
		}
			private System.String _appartmentNumber ;
		public System.String AppartmentNumber 
		{ 
			get
			{
				return this._appartmentNumber;
			}
			set
			{
				this._appartmentNumber = value;
				this.SendPropertyChanged("AppartmentNumber");
			}
		}
			private System.String _buildingNumber ;
		public System.String BuildingNumber 
		{ 
			get
			{
				return this._buildingNumber;
			}
			set
			{
				this._buildingNumber = value;
				this.SendPropertyChanged("BuildingNumber");
			}
		}
			private System.String _directions ;
		public System.String Directions 
		{ 
			get
			{
				return this._directions;
			}
			set
			{
				this._directions = value;
				this.SendPropertyChanged("Directions");
			}
		}
			private System.String _floorNumber ;
		public System.String FloorNumber 
		{ 
			get
			{
				return this._floorNumber;
			}
			set
			{
				this._floorNumber = value;
				this.SendPropertyChanged("FloorNumber");
			}
		}
			private System.Int32 _memberId ;
		public System.Int32 MemberId 
		{ 
			get
			{
				return this._memberId;
			}
			set
			{
				this._memberId = value;
				this.SendPropertyChanged("MemberId");
			}
		}
			private System.String _street ;
		public System.String Street 
		{ 
			get
			{
				return this._street;
			}
			set
			{
				this._street = value;
				this.SendPropertyChanged("Street");
			}
		}
			private System.String _zipCode ;
		public System.String ZipCode 
		{ 
			get
			{
				return this._zipCode;
			}
			set
			{
				this._zipCode = value;
				this.SendPropertyChanged("ZipCode");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region Countries Class 
	/// <summary>
	/// Entity represents a row for table Countries 
	/// </summary>
	public class Countries : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="Countries"/> class.
        /// </summary>
		public Countries()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.Int32 _countryId ;
		public System.Int32 CountryId 
		{ 
			get
			{
				return this._countryId;
			}
			set
			{
				this._countryId = value;
				this.SendPropertyChanged("CountryId");
			}
		}
			private System.String _countryName ;
		public System.String CountryName 
		{ 
			get
			{
				return this._countryName;
			}
			set
			{
				this._countryName = value;
				this.SendPropertyChanged("CountryName");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region Nationalities Class 
	/// <summary>
	/// Entity represents a row for table Nationalities 
	/// </summary>
	public class Nationalities : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="Nationalities"/> class.
        /// </summary>
		public Nationalities()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.Int32 _nationalityId ;
		public System.Int32 NationalityId 
		{ 
			get
			{
				return this._nationalityId;
			}
			set
			{
				this._nationalityId = value;
				this.SendPropertyChanged("NationalityId");
			}
		}
			private System.String _nationalityName ;
		public System.String NationalityName 
		{ 
			get
			{
				return this._nationalityName;
			}
			set
			{
				this._nationalityName = value;
				this.SendPropertyChanged("NationalityName");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region Modules Class 
	/// <summary>
	/// Entity represents a row for table Modules 
	/// </summary>
	public class Modules : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="Modules"/> class.
        /// </summary>
		public Modules()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.Int32 _moduleId ;
		public System.Int32 ModuleId 
		{ 
			get
			{
				return this._moduleId;
			}
			set
			{
				this._moduleId = value;
				this.SendPropertyChanged("ModuleId");
			}
		}
			private System.String _moduleName ;
		public System.String ModuleName 
		{ 
			get
			{
				return this._moduleName;
			}
			set
			{
				this._moduleName = value;
				this.SendPropertyChanged("ModuleName");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region News Class 
	/// <summary>
	/// Entity represents a row for table News 
	/// </summary>
	public class News : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="News"/> class.
        /// </summary>
		public News()
		{
			CreationDate = DateTime.Now; 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.DateTime _creationDate ;
		public System.DateTime CreationDate 
		{ 
			get
			{
				return this._creationDate;
			}
			set
			{
				this._creationDate = value;
				this.SendPropertyChanged("CreationDate");
			}
		}
			private System.String _description ;
		public System.String Description 
		{ 
			get
			{
				return this._description;
			}
			set
			{
				this._description = value;
				this.SendPropertyChanged("Description");
			}
		}
			private System.String _link ;
		public System.String Link 
		{ 
			get
			{
				return this._link;
			}
			set
			{
				this._link = value;
				this.SendPropertyChanged("Link");
			}
		}
			private System.Int32 _newsId ;
		public System.Int32 NewsId 
		{ 
			get
			{
				return this._newsId;
			}
			set
			{
				this._newsId = value;
				this.SendPropertyChanged("NewsId");
			}
		}
			private System.String _title ;
		public System.String Title 
		{ 
			get
			{
				return this._title;
			}
			set
			{
				this._title = value;
				this.SendPropertyChanged("Title");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region MemberCommitties Class 
	/// <summary>
	/// Entity represents a row for table MemberCommitties 
	/// </summary>
	public class MemberCommitties : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="MemberCommitties"/> class.
        /// </summary>
		public MemberCommitties()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.String _church ;
		public System.String Church 
		{ 
			get
			{
				return this._church;
			}
			set
			{
				this._church = value;
				this.SendPropertyChanged("Church");
			}
		}
			private System.Int32 _committieID ;
		public System.Int32 CommittieID 
		{ 
			get
			{
				return this._committieID;
			}
			set
			{
				this._committieID = value;
				this.SendPropertyChanged("CommittieID");
			}
		}
			private System.Byte ? _dayOfMonth ;
		public System.Byte ? DayOfMonth 
		{ 
			get
			{
				return this._dayOfMonth;
			}
			set
			{
				this._dayOfMonth = value;
				this.SendPropertyChanged("DayOfMonth");
			}
		}
			private System.Byte ? _dayOfWeek ;
		public System.Byte ? DayOfWeek 
		{ 
			get
			{
				return this._dayOfWeek;
			}
			set
			{
				this._dayOfWeek = value;
				this.SendPropertyChanged("DayOfWeek");
			}
		}
			private System.Boolean _isServant ;
		public System.Boolean IsServant 
		{ 
			get
			{
				return this._isServant;
			}
			set
			{
				this._isServant = value;
				this.SendPropertyChanged("IsServant");
			}
		}
			private System.Int32 _memberId ;
		public System.Int32 MemberId 
		{ 
			get
			{
				return this._memberId;
			}
			set
			{
				this._memberId = value;
				this.SendPropertyChanged("MemberId");
			}
		}
			private System.String _name ;
		public System.String Name 
		{ 
			get
			{
				return this._name;
			}
			set
			{
				this._name = value;
				this.SendPropertyChanged("Name");
			}
		}
			private System.Byte ? _occurreEveryMonths ;
		public System.Byte ? OccurreEveryMonths 
		{ 
			get
			{
				return this._occurreEveryMonths;
			}
			set
			{
				this._occurreEveryMonths = value;
				this.SendPropertyChanged("OccurreEveryMonths");
			}
		}
			private System.Int32 ? _occurreEveryWeeks ;
		public System.Int32 ? OccurreEveryWeeks 
		{ 
			get
			{
				return this._occurreEveryWeeks;
			}
			set
			{
				this._occurreEveryWeeks = value;
				this.SendPropertyChanged("OccurreEveryWeeks");
			}
		}
			private System.Byte ? _occurrenceType ;
		public System.Byte ? OccurrenceType 
		{ 
			get
			{
				return this._occurrenceType;
			}
			set
			{
				this._occurrenceType = value;
				this.SendPropertyChanged("OccurrenceType");
			}
		}
			private System.String _servantType ;
		public System.String ServantType 
		{ 
			get
			{
				return this._servantType;
			}
			set
			{
				this._servantType = value;
				this.SendPropertyChanged("ServantType");
			}
		}
			private System.DateTime ? _timeOfWeek ;
		public System.DateTime ? TimeOfWeek 
		{ 
			get
			{
				return this._timeOfWeek;
			}
			set
			{
				this._timeOfWeek = value;
				this.SendPropertyChanged("TimeOfWeek");
			}
		}
			private System.Byte ? _weekOfMonth ;
		public System.Byte ? WeekOfMonth 
		{ 
			get
			{
				return this._weekOfMonth;
			}
			set
			{
				this._weekOfMonth = value;
				this.SendPropertyChanged("WeekOfMonth");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region MemberEducation Class 
	/// <summary>
	/// Entity represents a row for table MemberEducation 
	/// </summary>
	public class MemberEducation : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="MemberEducation"/> class.
        /// </summary>
		public MemberEducation()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.Int32 _educationId ;
		public System.Int32 EducationId 
		{ 
			get
			{
				return this._educationId;
			}
			set
			{
				this._educationId = value;
				this.SendPropertyChanged("EducationId");
			}
		}
			private System.Int32 _memberId ;
		public System.Int32 MemberId 
		{ 
			get
			{
				return this._memberId;
			}
			set
			{
				this._memberId = value;
				this.SendPropertyChanged("MemberId");
			}
		}
			private System.String _name ;
		public System.String Name 
		{ 
			get
			{
				return this._name;
			}
			set
			{
				this._name = value;
				this.SendPropertyChanged("Name");
			}
		}
			private System.Byte _type ;
		public System.Byte Type 
		{ 
			get
			{
				return this._type;
			}
			set
			{
				this._type = value;
				this.SendPropertyChanged("Type");
			}
		}
			private System.Int32 _year ;
		public System.Int32 Year 
		{ 
			get
			{
				return this._year;
			}
			set
			{
				this._year = value;
				this.SendPropertyChanged("Year");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region MemberJobs Class 
	/// <summary>
	/// Entity represents a row for table MemberJobs 
	/// </summary>
	public class MemberJobs : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="MemberJobs"/> class.
        /// </summary>
		public MemberJobs()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.DateTime ? _employedFrom ;
		public System.DateTime ? EmployedFrom 
		{ 
			get
			{
				return this._employedFrom;
			}
			set
			{
				this._employedFrom = value;
				this.SendPropertyChanged("EmployedFrom");
			}
		}
			private System.DateTime ? _employedTo ;
		public System.DateTime ? EmployedTo 
		{ 
			get
			{
				return this._employedTo;
			}
			set
			{
				this._employedTo = value;
				this.SendPropertyChanged("EmployedTo");
			}
		}
			private System.String _employeer ;
		public System.String Employeer 
		{ 
			get
			{
				return this._employeer;
			}
			set
			{
				this._employeer = value;
				this.SendPropertyChanged("Employeer");
			}
		}
			private System.Boolean _isCurrentJob ;
		public System.Boolean IsCurrentJob 
		{ 
			get
			{
				return this._isCurrentJob;
			}
			set
			{
				this._isCurrentJob = value;
				this.SendPropertyChanged("IsCurrentJob");
			}
		}
			private System.Int32 _jobId ;
		public System.Int32 JobId 
		{ 
			get
			{
				return this._jobId;
			}
			set
			{
				this._jobId = value;
				this.SendPropertyChanged("JobId");
			}
		}
			private System.Int32 _memberId ;
		public System.Int32 MemberId 
		{ 
			get
			{
				return this._memberId;
			}
			set
			{
				this._memberId = value;
				this.SendPropertyChanged("MemberId");
			}
		}
			private System.String _position ;
		public System.String Position 
		{ 
			get
			{
				return this._position;
			}
			set
			{
				this._position = value;
				this.SendPropertyChanged("Position");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region Emails Class 
	/// <summary>
	/// Entity represents a row for table Emails 
	/// </summary>
	public class Emails : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="Emails"/> class.
        /// </summary>
		public Emails()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.String _code ;
		public System.String Code 
		{ 
			get
			{
				return this._code;
			}
			set
			{
				this._code = value;
				this.SendPropertyChanged("Code");
			}
		}
			private System.String _description ;
		public System.String Description 
		{ 
			get
			{
				return this._description;
			}
			set
			{
				this._description = value;
				this.SendPropertyChanged("Description");
			}
		}
			private System.Int32 _emailId ;
		public System.Int32 EmailId 
		{ 
			get
			{
				return this._emailId;
			}
			set
			{
				this._emailId = value;
				this.SendPropertyChanged("EmailId");
			}
		}
			private System.String _subject ;
		public System.String Subject 
		{ 
			get
			{
				return this._subject;
			}
			set
			{
				this._subject = value;
				this.SendPropertyChanged("Subject");
			}
		}
			private System.String _template ;
		public System.String Template 
		{ 
			get
			{
				return this._template;
			}
			set
			{
				this._template = value;
				this.SendPropertyChanged("Template");
			}
		}
			private System.String _templateResourcesPaths ;
		public System.String TemplateResourcesPaths 
		{ 
			get
			{
				return this._templateResourcesPaths;
			}
			set
			{
				this._templateResourcesPaths = value;
				this.SendPropertyChanged("TemplateResourcesPaths");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region Errors Class 
	/// <summary>
	/// Entity represents a row for table Errors 
	/// </summary>
	public class Errors : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="Errors"/> class.
        /// </summary>
		public Errors()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.String _code ;
		public System.String Code 
		{ 
			get
			{
				return this._code;
			}
			set
			{
				this._code = value;
				this.SendPropertyChanged("Code");
			}
		}
			private System.String _description ;
		public System.String Description 
		{ 
			get
			{
				return this._description;
			}
			set
			{
				this._description = value;
				this.SendPropertyChanged("Description");
			}
		}
			private System.Int32 _errorId ;
		public System.Int32 ErrorId 
		{ 
			get
			{
				return this._errorId;
			}
			set
			{
				this._errorId = value;
				this.SendPropertyChanged("ErrorId");
			}
		}
			private System.String _message ;
		public System.String Message 
		{ 
			get
			{
				return this._message;
			}
			set
			{
				this._message = value;
				this.SendPropertyChanged("Message");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
	
	
	#region Notifications Class 
	/// <summary>
	/// Entity represents a row for table Notifications 
	/// </summary>
	public class Notifications : IEntity, INotifyPropertyChanged			
	{
	 	/// <summary>
        /// Initializes a new instance of the <see cref="Notifications"/> class.
        /// </summary>
		public Notifications()
		{
			 
		}
		 #region INotifyPropertyChanged Members

       public event PropertyChangedEventHandler PropertyChanged;

       #endregion
			private System.String _code ;
		public System.String Code 
		{ 
			get
			{
				return this._code;
			}
			set
			{
				this._code = value;
				this.SendPropertyChanged("Code");
			}
		}
			private System.String _description ;
		public System.String Description 
		{ 
			get
			{
				return this._description;
			}
			set
			{
				this._description = value;
				this.SendPropertyChanged("Description");
			}
		}
			private System.Int32 _notificationId ;
		public System.Int32 NotificationId 
		{ 
			get
			{
				return this._notificationId;
			}
			set
			{
				this._notificationId = value;
				this.SendPropertyChanged("NotificationId");
			}
		}
			private System.String _template ;
		public System.String Template 
		{ 
			get
			{
				return this._template;
			}
			set
			{
				this._template = value;
				this.SendPropertyChanged("Template");
			}
		}
        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #region IEntity Members

        public INotifyPropertyChanged GetPropertyChanged()
        {
            return (INotifyPropertyChanged)this;
        }

        #endregion
	}
	#endregion
	
}